var express = require('express');
var router = express.Router();

var searchModel = require('../models/searchModel');

router.all('/', function(req, res, next) {
	var loginbean = req.session.loginbean;
	searchModel.search(req, res, loginbean);
});

router.get('/moreNews', function(req, res, next) {
	var loginbean = req.session.loginbean;
	searchModel.moreNews(req, res, loginbean);
});

module.exports = router;